﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessLogic.BusinessEntity.Entities;


namespace UserInterface.ClientApplication.UIEntity
{
	[Serializable]
	public class CurrencyView
	{
		public int ID { get; set; }

		public string Name { get; set; }

		public string Code { get; set; }

		public CurrencyView(){}

		public CurrencyView(Currency currency)
		{
			ID = currency.ID;
			Name = currency.Name;
			Code = currency.Code;
		}

		public override string ToString()
		{
			return Name;
		}


		public Currency ToBE()
		{
			Currency currency = new Currency();
			currency.Code = Code;
			currency.Name = Name;
			return currency;
		}
	}
}
